﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YXShop.Model.Templates
{
    public class Label
    {
        #region "member variant"
        private int _id;
        private int _moduleid;
        private int _tid;
        private string _name;
        private string _content=string.Empty;
        private string _description=string.Empty;
        private Nullable<DateTime> _creatTime;
        private Nullable<Int32> _labelclass;
        private Nullable<Int32> _isstorelabel;
        #endregion

        #region "Constructor"
        /// <summary>
        /// 构造一个空的新的数据访问对象
        /// </summary>
        /// <remarks></remarks>
        public Label()
        {
        }
        
        #endregion

        #region "Property"
        /// <summary>
        /// 与数据库基本列ID相对应的公共属性, Caption:标签ID
        /// </summary>
        /// <remarks></remarks>
        public int ID
        {
            get { return _id; }
            set { _id = value; }
        }
        /// <summary>
        /// 与数据库基本列TID相对应的公共属性, Caption:标签分类表ID
        /// </summary>
        /// <remarks></remarks>
        public int TID
        {
            get { return _tid; }
            set { _tid = value; }
        }
        /// <summary>
        /// 与数据库基本列Name相对应的公共属性, Caption:标签名称
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }


        /// <summary>
        /// 与数据库基本列Content相对应的公共属性, Caption:标签内容
        /// </summary>
        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }
        // <summary>
        /// 与数据库基本列Description相对应的公共属性, Caption:标签描述
        /// </summary>
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
        /// <summary>
        /// 与数据库基本列CreatTime相对应的公共属性, Caption:更新时间
        /// </summary>
        public Nullable<DateTime> CreateTime
        {
            get { return _creatTime; }
            set { _creatTime = value; }
        }
        /// <summary>
        /// 与数据库基本列Moduleid相对应的公共属性, Caption:自定义标签类别
        /// </summary>
        public int Moduleid
        {
            get { return _moduleid; }
            set { _moduleid = value; }
        }
        /// <summary>
        /// 与数据库基本列LabelClass相对应的公共属性, Caption:标签种类
        /// </summary>
        public Nullable<Int32> LabelClass
        {
            get { return _labelclass; }
            set { _labelclass = value; }
        }
        /// <summary>
        /// 与数据库基本列IsStoreLabel相对应的公共属性, Caption:是否是商铺内标签
        /// </summary>
        public Nullable<Int32> IsStoreLabel
        {
            get { return _isstorelabel; }
            set { _isstorelabel = value; }
        }
        #endregion
    }
}
